package com.example.zhanghao.controller;

import com.example.zhanghao.DTO.PayDto;
import com.example.zhanghao.utils.HupijiaoHandler;
import com.example.zhanghao.utils.SnowFlake;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

@RestController //这是返回接口
@RequestMapping("/test")
public class TestController {

    private static final Logger LOG = LoggerFactory.getLogger(TestController.class);

    @Resource
    private SnowFlake snowFlake;

    @GetMapping("/test1")
    public String hupijiao(@Valid PayDto req) {
        return "测试成功";
    }

}

